from django.contrib import admin
from .models import *


# Register your models here.

class ClassInfo(admin.ModelAdmin):
    list_display = ['name', 'people', 'theory_Classroom', 'img']
    list_per_page = 10
    search_fields = ['name']


class DeviceInfo(admin.ModelAdmin):
    list_display = ['Device_name', 'IMEI', 'img', 'judge_normal', 'd_Classroom']
    list_per_page = 10
    search_fields = ['Device_name']


class CleaningInfo(admin.ModelAdmin):
    list_display = ['RATING_CHOICES', 'order_Pname', 'health', 'order_Classroom', 'commander', 'cleaning_time', 'img']
    list_per_page = 10
    search_fields = ['order_Classroom']


admin.site.register(ClassroomManagement,ClassInfo)
admin.site.register(device,DeviceInfo)
admin.site.register(Classroom_cleaning,CleaningInfo)
